package com.leyou.item.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leyou.item.entity.Spu;
import org.apache.ibatis.annotations.Update;


public interface SpuMapper extends BaseMapper<Spu> {
    @Update("UPDATE FROM tb_sku SET saleable = #{saleable} WHERE spu_id = #{id}")
    void updatesaleable(Integer id, Boolean saleable);
}